/**
 * 用户相关请求模块
 */
import request from "@/utils/request";

//用户登录
export const login = (data) => {
    return request({
        method: "GET",
        url: "server/login.json",
        data: data,
    })
}
// 请求用户信息
export const getUserInfo = data => {
    // console.log('---->'+JSON.stringify(data));
    // const token = 'Bearer_'+JSON.parse(data).token
    return request({
        method:'GET',
        url:'server/userInfo.json',
        data: {"username":"admin","password":"123456"},
    })
}
